Add missing braces in GPX schema detector.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 27 Jun 2009 23:47:05 +0000 (23:47 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 27 Jun 2009 23:47:05 +0000 (23:47 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3682 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gpx.c

index e89b994f2d4dd2fa6e4930789f4c22572cf6cc1e..6658ce2d30a421e2582897a2f2ab87ae18a084df 100644 (file)
@@ -440,9 +440,10 @@ tag_gpx(const char **attrv)
                 */
                else if (strcmp(avp[0], "xsi:schemaLocation") == 0) {
                        if (0 == strcmp(avp[1], DEFAULT_XSI_SCHEMA_LOC_11)) {
-                               if (0 == strcmp(xsi_schema_loc, DEFAULT_XSI_SCHEMA_LOC))
+                               if (0 == strcmp(xsi_schema_loc, DEFAULT_XSI_SCHEMA_LOC)) {
                                        xfree(xsi_schema_loc);
                                        xsi_schema_loc = xstrdup(DEFAULT_XSI_SCHEMA_LOC_11);
+                               }
                                continue;
                        }
                        if (0 == strstr(xsi_schema_loc, avp[1])) {